import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
    state: {
        isShowShadow: false
    },
    // 同步
    mutations: {
        changeIsShowShadow(state, payload) {
            state.isShowShadow = payload
        }
    },
    // 异步，如请求中或者定时器中修改state的值
    actions: {},
    modules: {}
})